package service.serviceImpl;

import dao.ClazzMapper;
import dao.daoImpl.ClazzMapperImpl;
import pojo.Department;
import pojo.LogFamily;
import service.ClazzService;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017-12-10.
 */
public class ClazzServiceImpl implements ClazzService {
    ClazzMapper clazzMapper=new ClazzMapperImpl();
    @Override
    public List<LogFamily> getAllLogFamily() throws SQLException {
        return clazzMapper.getAllLogFamily();
    }

    @Override
    public int deleteLogFamily(int id) throws SQLException {
        return clazzMapper.deleteLogFamily(id);
    }

    @Override
    public int deleteLogDepartment(int id) throws SQLException {
        return clazzMapper.deleteLogDepartment(id);
    }

    @Override
    public int addLogFamily(String logFamily) throws SQLException {
        return clazzMapper.addLogFamily(logFamily);
    }

    @Override
    public int addDepartment(String department) throws SQLException {
        return clazzMapper.addDepartment(department);
    }

    @Override
    public List<Department> getAllDepartment() throws SQLException {
        return clazzMapper.getAllDepartment();
    }
}
